package com.buyingtickets.dao;

import com.buyingtickets.entity.*;

import java.util.List;

/**
 * @author czl
 * @version 1.0
 * @description: TODO
 * @date 2021/6/24 10:12
 */
public interface OrderDao {
    public List<Order> queryAll();//查询所有订单
    public List<Order> queryByQueryOrder(QueryParameter qp);//分页查询订单
    public int queryCountQueryOrder(QueryParameter qp);//分页查询订单
    public Order queryByID(int id);//根据订单ID查找
    public int update(Order order);//根据订单ID修改
    public  int delete(int id);//根据订单ID删除
    public List<Ticket> queryAllTicket();//查询所有的车票
    public List<Ticket> queryByQueryTicket(QueryParameter qp);//分页查询车票
    public int queryCountQueryTicket(QueryParameter qp);//分页查询车票
    public Ticket queryByTID(int id);//根据车票ID查找
    public int updateT(Ticket ticket);//根据车票ID修改
    public  int deleteT(int id);//根据车票ID删除
    public int insertInto(TrainNumber trainNumber);//添加订单
    public int queryUserTrainId(TrainNumber trainNumber);//根据订单创建者ID、车次ID查询订单号
}
